using System;
using System.Runtime.Serialization;
namespace Net35.Crm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/crm/2011/Contracts")]
	public sealed class ValidationResult : IExtensibleDataObject
	{
		private ExtensionDataObject _extensionDataObject;
		[DataMember]
		public bool ValidationSuccess
		{
			get;
			set;
		}
		[DataMember]
		public TraceInfo TraceInfo
		{
			get;
			set;
		}
		[DataMember]
		public Guid ActivityId
		{
			get;
			set;
		}
		public ExtensionDataObject ExtensionData
		{
			get
			{
				return this._extensionDataObject;
			}
			set
			{
				this._extensionDataObject = value;
			}
		}
		public ValidationResult()
		{
			this.ValidationSuccess = false;
			this.TraceInfo = null;
		}
		public ValidationResult(bool success, TraceInfo traceInfo, Guid activityId)
		{
			this.ValidationSuccess = success;
			this.TraceInfo = traceInfo;
			this.ActivityId = activityId;
		}
	}
}
